package com.kkb.shopcenter.controller;


import com.kkb.shopcenter.api.PageService;
import com.kkb.shopcenter.common.common.HttpResult;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/page")
public class PageController {

    @Reference
    private PageService pageService;

    @GetMapping("/build")
    public HttpResult buildPage(){
        String result = pageService.staticBuild();
        return HttpResult.success(result);
    }

}
